import actions from '@/store/actions'
import mutations from '@/store/mutations'

var users = {
    state: {
        todos: [
            {
                id: 1,
                name: '日出',
                done: true
            },
            {
                id: 2,
                name: '日落',
                done: false
            },
            {
                id: 3,
                name: '云去',
                done: true
            },
            {
                id: 4,
                name: '云归',
                done: false
            }
        ],
        count: '爱你哟'
    },
    getters: {
        doneTodos: status => {
            return status.todos.filter(intex => intex.done)
        },
        doneTodofalse: status => {
            return status.todos.filter(intex => !intex.done)
        }
    },
    mutations,
    actions
}

export default  users